import MockUtil from './mockutils.js';

export default [
	{
		url: "/api/v1/core/menus.do", //请求地址
		method: 'post', //请求方式
		response: () => {
			const menus = [
				{key: '0010',label: 'Navigation One',title: 'Navigation One', },
				{key: '0020',label: 'Navigation Two',title: 'Navigation Two', },
				{key: '0030',label: 'Navigation Three',title: 'Navigation Three',
					children: [
						{key: '0031',label: 'Option 3',title: 'Option 3',},
						{key: '0032',label: 'Option 4',title: 'Option 4',},
					],
				},
				{key: '0014',label: 'Navigation Four',title: 'Navigation Four',
					children: [
						{key: '0017',label: 'Option 7',title: 'Option 7',},
						{key: '0018',label: 'Option 8',title: 'Option 8',},
						{key: '0019',label: 'Option 9',title: 'Option 9',},
						{key: '0016',label: 'Option 10',title: 'Option 10',},
					],
				},
			];
			return  MockUtil.formatMessage(menus,"成功");//MockUtil.formatErrorMessage({},"失败");//
		},
	},
]
